package com.lj.config;

import com.lj.pojo.User;
import org.springframework.cloud.client.circuitbreaker.NoFallbackAvailableException;
import org.springframework.stereotype.Component;

@Component
public class Fallback implements UserFeign{

    @Override
    public User selectUser(String id) {
        return new User("500","服务器繁忙，请稍后再试","","","");
    }

}
